<?xml version="1.0" encoding="UTF-8" ?>
<%@page import="java.util.*"%>
<%@page import="com.ks.sgms.entity.*"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<style type="text/css">
.s {
	width: 180px;
	height: 30px;
}

div {
	margin: 0 auto;
	width: 80%;
	text-align: center;
	border: 1px solid;
}
table {
	border: 2px solid;
}

td {
	border: 1px solid;
	text-align: center;
	width: 200px;
	height: 30px;
}
</style>
<title>查询成绩</title>
</head>
<body>
	<div>
		<form action="searchScore" method="post">
			<p>
				请输入你要查询成绩的学号：
			</p>
			<p>
				<input type="text" name="student_id" />
			</p>
			<p>
				<input type="submit" value="确认" class="s" />
			</p>
		</form>
		<% List<Score> list = (ArrayList)session.getAttribute("list");%>
		<table align="center">
			<tr>
				<td>学号</td>
				<td>姓名</td>
				<td>课程</td>
				<td>成绩</td>
				<td>学期</td>
			</tr>
			<%if(list!=null){ %>
			<%for(int i = 0;i < list.size();i++){ %>
				<tr>
					<td><%=list.get(i).student_id %></td>
					<td><%=list.get(i).student_name %></td>
					<td><%=list.get(i).course_name %></td>
					<td><%=list.get(i).score %></td>
					<td><%=list.get(i).term %></td>
				</tr>
			<%} %>
			<%} %>
		</table>
	</div>
</body>
</html>